#ifndef AUX_H_
#define AUX_H_

#include "../tickets/tickets.h"

/**
 ** Determines if a file exits.
 **
 **	@param	filename	Filename
 ** @return	Return 1 if file exists, 0 if not.
 **/
int fileExists(char * filename);

/**
 **	Prints ticket parameters: ticket id, enable and expiration time.
 **
 **	@param	Pointer to ticketP, which contains the information of the ticket
 **
 **/
void printTicketParameters(ticketP * tickp);

/**
 ** Gets the size in bytes of the a given file.
 **
 **	@param	path	Path of the file that needs it's size to be determined.
 ** @return			Size in bytes of the file.
 **
 **/
int getfilesize(const char * path);

/**
 ** Checks if a filename contains any unallowed characters.
 **
 **	@param	filename	Name of the file that needs to be checked.
 **	@return				Returns 1 if filename is OK, 0 if not.
 **
 **/
int checkFilename(char * filename);

#endif /*AUX_H_*/
